package com.yanqu.road.entity.player;

/**
 * 服务器配置信息
 */
public class UserServerInfo {

	private int serverId;

	private String serverName;

	private String gameServerUrl;

	private String webServerUrl;

	private long openTime;

	private int channelId;

	private boolean open;

	private int state;

	private String wsIndex;

	private int clientVersion;

	private int maxOnlineCount = 20000;

	private boolean openLoginQueue = false;

	private Long userId;

	private String nickName;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public int getServerId() {
		return serverId;
	}

	public void setServerId(int serverId) {
		this.serverId = serverId;
	}

	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public String getGameServerUrl() {
		return gameServerUrl;
	}

	public void setGameServerUrl(String gameServerUrl) {
		this.gameServerUrl = gameServerUrl;
	}

	public String getWebServerUrl() {
		return webServerUrl;
	}

	public void setWebServerUrl(String webServerUrl) {
		this.webServerUrl = webServerUrl;
	}

	public int getChannelId() {
		return channelId;
	}

	public void setChannelId(int channelId) {
		this.channelId = channelId;
	}

	public long getOpenTime() {
		return openTime;
	}

	public void setOpenTime(long openTime) {
		this.openTime = openTime;
	}

	public boolean isOpen() {
		return open;
	}

	public void setOpen(boolean open) {
		this.open = open;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getWsIndex() {
		return wsIndex;
	}

	public void setWsIndex(String wsIndex) {
		this.wsIndex = wsIndex;
	}

	public int getClientVersion() {
		return clientVersion;
	}

	public void setClientVersion(int clientVersion) {
		this.clientVersion = clientVersion;
	}


	public int getMaxOnlineCount() {
		return maxOnlineCount;
	}

	public void setMaxOnlineCount(int maxOnlineCount) {
		if(maxOnlineCount>0){
			this.maxOnlineCount = maxOnlineCount;
		}
	}


	public boolean isOpenLoginQueue() {
		return openLoginQueue;
	}

	public void setOpenLoginQueue(boolean openLoginQueue) {
		this.openLoginQueue = openLoginQueue;
	}
}
